package com.xhwl.logistics.service.cent;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件上传feign
 */
@FeignClient(value = "cent-data-core",contextId = "file")
public interface IFileService {

    /**
     * 文件上传
     * @param file
     * @return
     */
    @Headers("Content-Type:multipart/form-data")
    @RequestLine(value = "POST /upload/file")
    public String uploadeFile(@Param("file") MultipartFile file);

}
